/**
 * @param {number[][]} mat
 * @return {number[]}
 */
// 这个二分查找有点难啊
var findPeakGrid = function (mat) {
  // 
}
// omn混个积分先
var findPeakGrid = function (mat) {
  let max = mat[0][0]
  let ans = [0, 0]
  for (let i = 0; i < mat.length; i++) {
    for (let j = 0; j < mat[0].length; j++) {
      if (mat[i][j] > max) {
        max = mat[i][j]
        ans = [i, j]
      }
    }
  }
  return ans
}